{% extends "WebMainSiteBundle:User:layout.html.twig" %}
{% set title = "申请教师资格" %}
{% block title %}
    {{ title }}
{% endblock %}

{% block user_main %}
    {% if msg is defined %}
        <div class="grey-box  author-box">
            <div class="row">
                <p>{{ msg }}</p>
            </div>
        </div>
    {% endif %}
    <form class="form-horizontal" role="form"  method="post">
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">选择职称</label></div>
                    <div class="col-md-9">
                        <select name="category" class="form-control">
                            <option value="0">- 请选择职称 -</option>
                            {% for c in cat %}
                                <option value="{{ c.id }}">{{ c.name }}</option>
                            {% endfor %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">姓名</label></div>
                    <div class="col-md-9">
                        <input name="name" type="text" class="form-control" id="phone" placeholder="请填写真实姓名或者笔名"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">个人简介</label></div>
                    <div class="col-md-9">
                        <textarea  name="intro" class="form-control" rows="11" id="info" placeholder="个人简介:您的教学经验，擅长领域，教学成就等。请尽可能用简短的文字描述，以某些页面不能全面展示。"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">身份证号</label></div>
                    <div class="col-md-9">
                        <input name="idCode" type="text" class="form-control" id="phone" placeholder="请填身份证号"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">身份证正面</label></div>
                    <div class="col-md-9">
                        <input name="idPic1" type="hidden" class="MyUpload" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">身份证反面</label></div>
                    <div class="col-md-9">
                        <input name="idPic2" type="hidden" class="MyUpload" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">教师资格证</label></div>
                    <div class="col-md-9">
                        <input name="teacherPic" type="hidden" class="MyUpload" />
                    </div>
                </div>
            </div>
            <p class="buttons-margin-horizontal">
                <input type="submit" class="btn btn-theme btn-green" value="提交审核" />
            </p>
        </div>
    </form>
{% endblock %}
{% block myJs %}
    {% include "AssetsUploadBundle:MyUpload:inc.html.twig" %}
{% endblock %}